﻿<Window
    x:Class="Search.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF Search App"
    Height="350"
    Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="64" />
            <RowDefinition
                Height="247*" />
        </Grid.RowDefinitions>
        <TextBox
            Margin="13,11,107,10"
            Name="textBox1" 
            KeyUp="textBox1_KeyUp"/>
        <Button
            Content="Suchen"
            Name="searchSynchronButton"
            Click="searchSynchronButton_Click"
            HorizontalAlignment="Right"
            Width="101" />

        <ListBox
            Grid.Row="1"
            Margin="12,13,18,12"
            Name="listBox1">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel
                        Orientation="Horizontal">
                        <Image
                            Source="{Binding Thumbnail.MediumBitmapSource}" />
                        <TextBlock
                            Text="{Binding Properties.System.Title.Value}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</Window>
